home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Direct Blitting in C++
/
Blitting.sit
/
Blitting ƒ
/
CDirectBlit.h
< prev
next >
Wrap
Text File
|
1995-04-16
|
1KB
|
45 lines
// CDirectBlit.h, the CDirectBlit class definition
//
// Copyright ⌐ 1995, Macneil Shonle. All rights reserved.
#ifndef __CDIRECTBLIT__
#define __CDIRECTBLIT__
#ifndef __PIXELTYPES__
#include <PixelTypes.h>
#endif
class CDirectBlit {
public:
PixelPtr GetBaseAddress();
RowWidth GetRowBytes();
RowWidth GetWidth();
ColumnHeight GetHeight();
Rect* GetBounds(); // get global bounds
Rect* GetPortRect(); // get local bounds
CGrafPtr GetMacPort();
GDHandle GetMacDevice();
BitMap* GetBitMap(); // BitMap to use for CopyBits parameter
BitDepth GetBitDepth();
int Use32Bit(); // addressing mode to use for pixel access
PixelPtr GetAddressOfRow( PixelCoordinate theRow );
PixelPtr GetAddressOfPixel( PixelCoordinate h, PixelCoordinate v );
protected:
PixelPtr mBaseAddress;
RowWidth mRowBytes;
PixelPtr *mRowAddresses; // quick row array
Rect mBounds;
BitDepth mBitDepth;
CGrafPtr mPort;
GDHandle mGDevice;
SInt8 mAddressingMode;
void BuildQuickRow();
void DestroyQuickRow();
};
#endif